<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      margin: 0;
      padding: 0;
    }

    .box {
      background-color: #f00;
      height: 489px;
      overflow: hidden;

    }

    .box img {
      position: relative;
      /* left: -960px; */
      /* translate中的百分比是现对于自己的 */
      transform: translate(-50%);
      /* 向右边移动div的一半 */
      margin-left: 50%;
    }
  </style>
</head>

<body>
  <div class="box">
    <img src="../images/mhxy.jpg" alt="">
  </div>
</body>

</html>